<?php
JunctionFileCabinet::using("Junction_Query_Delete");

class Test_Junction_Query_Delete extends UnitTestCase {
	
	private $_expected = "DELETE FROM users";
	
	private $_params = array("email" => "foo@bar.com", "date" => "today");
	
	private $_table = "users";

	public function testToSql() {
		$builder = new Junction_Query_Delete();
		$builder->bindTable($this->_table);
		foreach ($this->_params as $column => $value) {
			$builder->bindProperty($column, $value);
		}
		$this->assertTrue($this->_expected == $builder->toSql());
	}
}
?>